<div class="row">
  <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
  <div class="span9">
  <div  class="control-group">
<a href="#myModal" role="button" class="btn btn-primary" data-toggle="modal"><i class="icon-user icon-white"></i> 发送Android推送</a>
</div>

<*$page*>
<table class="table">
<tr>
<th>devicetoken</th>
<th>cnname(studentno)</th>
<th>agent</th>
<th>登陆时间</th>
<th>&nbsp;</th>
</tr>
   <*foreach from=$result item=item key=key*>
   <tr>
   <td><*$item.devicetoken*></td>
   <td><*$item.cnname*>(<*$item.studentno*>)</td>
   <td><*$item.agent*></td>
   <td><*$item.addtime*></td>
  <td>&nbsp;</td>
   </tr>
  <*/foreach*>
</table>
<*$page*>
<div  class="control-group form-actions">
<a href="#myModal" role="button" class="btn btn-primary" data-toggle="modal"><i class="icon-user icon-white"></i> 发送Android推送</a>
</div>
</div>
</div>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <form class="form-signin" id="login_form" action="/<*$controller*>/opadd" method="post" onsubmit="return checkLoginForm();">

  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">发送Android推送</h3>
  </div>
  <div class="modal-body">
     <iframe src="http://push.yunxiaoche.com/mqtt/" style="width:500px; height:230px; border:none"></iframe>
    
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
  </div>
        </form>
<script type="text/javascript" >
function checkLoginForm(){
	var account=document.getElementById('account').value;
	var password=document.getElementById('password').value;
	var repassword=document.getElementById('repassword').value;
	if(''== account){
		alert('需要输入账号');
		document.getElementById("password").focus();
		return false;
	}
	if(''== password){
		alert('需要输入密码');
		document.getElementById("password").focus();
		return false;
	}
	if(repassword != password){
		alert('两次密码不一致');
		document.getElementById("repassword").focus();
		return false;
	}

	return true;
}
</script>
</div>